package com.bee.beemanage.api.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bee.beemanage.api.entity.SysDepartment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 部门表 Mapper 接口
 * </p>
 *
 * @author 陈国松
 * @since 2022-10-09
 */
@Mapper
public interface SysDepartmentMapper extends BaseMapper<SysDepartment> {

    Page<SysDepartment> recycleSearch(Page<SysDepartment> page, @Param("sysDepartment")SysDepartment sysDepartment, @Param("startTime")LocalDateTime startTime, @Param("endTime")LocalDateTime endTime);

    boolean recover(List<String> ids);

    boolean clear();
}
